﻿using MVCTest2.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MVCTest2.Models
{
    public class MusicStoreDblnitializer:System.Data.Entity.DropCreateDatabaseAlways <MusicStoreDB>
    {
        protected override void Seed(MusicStoreDB context)
        {
            context.Artists.Add(new Artist { Name = "摇滚" });
            context.Genres.Add(new Genre { Name = "老年迪斯科", Description = "永远的经典" });

            base.Seed(context);
        }
    }
}